import {Injectable} from '@angular/core';
import {Http} from '@angular/http';

@Injectable()

export class UserFavorsProvider{

    constructor(private http:Http){}

    getManhuaFavors(param){
        return this.http.post('/api/favors/page',param);
    }

    unfavor(param){
        return this.http.post('/api/favors/delete',param);
    }
    update(param){
        return this.http.post('/api/favors/update',param);
    }

    getManhuaDetail(param){        
        return this.http.get('/api/manhua/detail',{"search":param});
    }
}